package String;

public class SubstringDemo {
    public static void main(String[] args) {
        String str = "www.tedu.com";
        String name = str.substring(str.indexOf(".")+1,str.indexOf(".",str.indexOf(".")+1));
        System.out.println(name);
    }
}
